#pragma once
#include "Entity.h"

namespace Orange {
	class ScriptableEntity {
	public:
		template <typename T>
		T& GetComponent() {
			return m_entity.GetComponent<T>();
		}

	protected:
		virtual void OnCreate() {};
		virtual void OnUpdate(Time detalTime) {};
		virtual void OnDestory() {};
	private:
		Entity m_entity;
		friend class Scene;
	};
}